# Maintainer: Daniel Isaksen <d@duniel.no>
pkgname=elvish
pkgver=0.14.1
pkgrel=0
pkgdesc="A friendly and expressive shell for Linux, macOS and BSDs"
url="https://elvish.io/"
arch="all !mips !mips64" # boltdb
license="BSD-2-Clause"
makedepends="go"
options="!check chmod-clean"
source="$pkgname-$pkgver.tar.gz::https://github.com/elves/elvish/archive/v$pkgver.tar.gz"
builddir="$srcdir/src/github.com/elves/$pkgname"

prepare() {
	mkdir -p ${builddir%/*}
	mv "$srcdir"/$pkgname-$pkgver "$builddir"/
	default_prepare
}

build() {
	export GOPATH="$srcdir"
	go build -o bin/$pkgname
}

package() {
	install -Dm755 "$builddir"/bin/elvish -t "$pkgdir"/usr/bin
}

sha512sums="d232e0b5f1fcbbff8c147e32f8b512895fb63b24f799d598663b1238b9d7b2790045689feb62ee9b7b091193e353680608ec91ecd703a0c91c63b573b66fa2b8  elvish-0.14.1.tar.gz"
